<?php
require_once("needed.php");
abstract class abstract_controller {

	public function prepare_model_and_view($request_params, Smarty $smarty_obj) {			
		
		if (isset($_SESSION['message'])){
			$message = htmlentities($_SESSION['message']);
			$smarty_obj->assign('message', $message);
			session_unregister('message');
		}

		$this->prepare_model($request_params, $smarty_obj);
	}
	
	abstract protected function prepare_model($request_params, Smarty $smarty_obj);
}

?>